import request from '@/libs/http/index'

// 登录
export function loginApi(data) {
  return request({
    url: '/manager/login',
    method: 'POST',
    header: {
      isToken: false // 不需要携带token
    },
    data
  })
}

// 获取验证码
export function getCaptchaApi(){
  return request({
    url: '/manager/captcha',
    method: 'GET',
    header: {
      isToken: false
    }
  })
}

// 退出登录
export function logoutApi(){
  return request({
    url: '/manager/logout',
    method: 'POST'
  })
}

// 获取用户信息
export function getUserInfoApi(){
  return request({
    url: '/getUserInfo',
    method: 'GET'
  })
}